package com.stedu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 员工表
 * @TableName employee
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmployeeVo {
    private Long eid;
    private String eno;
    private String ename;
    private Integer eage;
    private String egender;
    private String ejob;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy年MM月dd日", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy年MM月dd日")
    private Date eentrydate;

    /**
     * 基本薪资
     */
    private BigDecimal esalary;

    /**
     * 在职状态(1.在职 2.离职)
     */
    private Integer estate;

    /**
     * 部门编号
     */
    private Integer did;

    /**
     * 部门名称
     */
    private String dname;




}